package cn.com.zs.android.util;

import cn.com.zs.android.model.PhoneParams;

/**
 * 常量类
 * @author 曾帅
 */
public class Constants {

	/** 每组图片的总数  **/
	public final static int EACH_GROUP_IMAGE_NUMBER = 4;
	
	/** 地洞数 **/
	public final static int HOLE_TOTAL = 9;
	/** 最多多少个地洞出小鱼 **/
	public final static int MAX_HOLE_OUT = 5;
	/** 小鱼图片的宽 **/
	public final static int IMAGE_WIDTH = PhoneParams.getWidthSize(150);
	/** 小鱼图片的高 **/
	public final static int IMAGE_HEIGHT = IMAGE_WIDTH;
	/** GameOver图片的宽 **/
	public final static int GAME_OVER_WIDTH = PhoneParams.getWidthSize(700);
	/** GameOver图片的高 **/
	public final static int GAME_OVER_HEIGHT = IMAGE_WIDTH;
	/** 地洞位置：距离left, top, right, bottom的像素点 **/
	public final static int[] HOLE_PLACE_ONE 	= PhoneParams.getPlaceByHole(100, 130);
	public final static int[] HOLE_PLACE_TWO 	= PhoneParams.getPlaceByHole(350, 110);
	public final static int[] HOLE_PLACE_THREE 	= PhoneParams.getPlaceByHole(600, 120);
	public final static int[] HOLE_PLACE_FOUR 	= PhoneParams.getPlaceByHole(20 , 230);
	public final static int[] HOLE_PLACE_FIVE 	= PhoneParams.getPlaceByHole(245, 220);
	public final static int[] HOLE_PLACE_SIX 	= PhoneParams.getPlaceByHole(465, 210);
	public final static int[] HOLE_PLACE_SEVEN 	= PhoneParams.getPlaceByHole(180, 320);
	public final static int[] HOLE_PLACE_EIGHT 	= PhoneParams.getPlaceByHole(440, 320);
	public final static int[] HOLE_PLACE_NINE 	= PhoneParams.getPlaceByHole(620, 260);
	public final static int[] GAME_OVER		 	= PhoneParams.getPlaceByGameOver(50 , 150);
	public final static int[] GAME_RESTART		= PhoneParams.getPlaceByHole(650, 330);
	
	/** 音效的宽 **/
	private final static int VOICE_WIDTH = PhoneParams.getWidthSize(80);
	/** 距离边缘宽度 **/
	private final static int DISTANCE_SIDE = 10;
	/** 背景音乐位置 **/
	public final static int[] BACKGROUND_MUSIC = {DISTANCE_SIDE, DISTANCE_SIDE, DISTANCE_SIDE + VOICE_WIDTH, DISTANCE_SIDE + VOICE_WIDTH};
	/** 系统声音位置 **/
	public final static int[] SYSTEM_SOUND = {15 + VOICE_WIDTH, DISTANCE_SIDE, 15 + VOICE_WIDTH * 2, DISTANCE_SIDE + VOICE_WIDTH};
	/** 距上的宽度 **/
	private final static int DISTANCE_SIDE_TOP = 30;
	/** 进度条（游戏时间）位置 **/
	public final static int[] GAME_TIME = {PhoneParams.getWidthSize(200), DISTANCE_SIDE_TOP, PhoneParams.getWidthSize(500), DISTANCE_SIDE_TOP + PhoneParams.getWidthSize(30)};
	/** 分数距离左边位置 **/
	public final static int SCORE_DISTANCE_SIDE_LEFT = PhoneParams.getWidthSize(530);
	/** 分数图片的款 **/
	public final static int SCORE_WIDTH = PhoneParams.getWidthSize(100);
	/** 分数位置 **/
	public final static int[] GAME_SCORE = {SCORE_DISTANCE_SIDE_LEFT, DISTANCE_SIDE, SCORE_DISTANCE_SIDE_LEFT + SCORE_WIDTH, DISTANCE_SIDE + SCORE_WIDTH};
	/** 准备数字的尺寸 **/
	public final static int READY_NUMBER_SIZE = PhoneParams.getWidthSize(200);
	/** 空洞状态 **/
	public final static int EMPTY_HOLE_STATUS = 0;
	/** 初始状态 **/
	public final static int HAMSTER_STATUS_START = 1;
	/** 最后状态（这个状态之后会显示空洞） **/
	public final static int HAMSTER_STATUS_END = 5;
	/** 击中状态 **/
	public final static int HAMSTER_STATUS_HIT = 99;
	
	/** 游戏结束状态 **/
	public final static int GAME_OVER_STATUS = 98;
	/** 游戏重新开始状态 **/
	public final static int GAME_RESTART_STATUS = 99;
	
}

